//
//  Page.h
//  AifudaoDrawer
//
//  Created by Ji Hu on 12-5-16.
//  Copyright (c) 2012年 爱辅导. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Diapatchable.h"

//#define WIDTH 1024
//#define HEIGHT 700

@interface Page : UIView<Diapatchable>
{
    CGImageRef mContent;
    CGContextRef mContext;
    int pageNum;
    void *data ;
    size_t datalenth ;
    CGDataProviderRef provider;
    char name[256];
    
    BOOL isLoading;
    BOOL isDirty;
    
//    PageContainer *attachedContainer;
}

@property(nonatomic,assign) int pageNum;

//if container is nil.you can not draw hold path o r data.
-(void) setPage:(int) pagenum;
//fromto.TRUE means from top to bottom.FLASE from bottom to top.
//-(int)copyArea:(void *)pixel withArea:(IntRect)area withOffset:(int)offset direction:(BOOL)fromto;
-(const char *) buildFullPath;
-(void) loadFromFile;

@end
